package the.guanzhong.express.interfaces.controller.resp;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 目前仅仅适用于样衣的折扣
 */
@Data
public class UserOrderTodayResp implements Serializable {

    private static final long serialVersionUID = 2370809857043893466L;

    public UserOrderTodayResp(boolean ifPreferential) {
        this.ifPreferential = ifPreferential;
    }

    /**
     *  是否需要优惠
     */
    private boolean ifPreferential;

    /**
     * 折扣力度
     */
    private BigDecimal discount = BigDecimal.valueOf(0.5);
}
